<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
  <persistence-unit name="mcc">
    <jta-data-source>java:/mcc_data_source</jta-data-source>
    <properties>
      <!-- Это свойство необходимо в hibernate 4 для автоинкрементального создания id -->
      <property name="hibernate.id.new_generator_mappings" value="false" />
      <property name="hibernate.hbm2ddl.auto" value="update" />
    </properties>
  </persistence-unit>
</persistence>
